<template>
  <div class="detail-swiper">
    <Swiper>
      <SwiperItem
        v-for="(item, index) in topImages"
        :key="index"
        class="swiper-item"
      >
        <img :src="item" alt="" />
      </SwiperItem>
    </Swiper>
  </div>
</template>

<script>
export default {
  props: {
    topImages: {
      type: Array,
      default() {
        return [];
      },
    },
  },
  data() {
    return {};
  },
  methods: {},
};
</script>

<style lang="less" scoped>
.detail-swiper {
  .swiper-item {
    height: 400px;
    overflow: hidden;
    img {
      width: 100%;
    }
  }
}
</style>